// api/modules/collect.js
import request from "../request";

export default {
  collectHouse(houseId, userId) {
    // 使用模板字符串传递路径参数
    return request.post(`/api/collect/collectHouse/${houseId}/${userId}`);
  },
  getCollectList(userId, params) {
    return request({
      url: `/api/collect/getCollectList/${userId}`,
      method: "get",
      params: {
        page: params.page,
        size: params.size,
      },
    });
  },
  checkCollectStatus(houseId, userId) {
    // 使用模板字符串传递路径参数
    return request.get(`/api/collect/checkCollectStatus/${houseId}/${userId}`);
  },
};
